<div class="panel panel-default">
	<div class="panel-heading newsfeed">
		<p>Message Details</p>
	</div>
	<div class="panel-body mail">
		<div class="row">
			<div class="col-sm-3 col-md-3">
				<!--<a href="#" class="btn btn-danger btn-sm btn-block" role="button">COMPOSE</a>-->
			</div>
			<div class="col-sm-9 col-md-9">
				<!-- /input-group -->
				<!-- Split button -->
				<div class="btn-group">
					<button type="button" class="btn btn-default">Back</button>
				</div>
				<button type="button" class="btn btn-default" data-toggle="tooltip" title="Refresh">
					<span class="glyphicon glyphicon-refresh"></span> 
				</button>
				<!-- Single button -->
				<div class="btn-group">
					<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
						More <span class="caret"></span>
					</button>
					<ul class="dropdown-menu" role="menu">
						<li>&nbsp;&nbsp;Move to:</li>
						<li><a href="#">Personal</a></li>
						<li class="divider"></li>
						<li><a href="#">Create New Label</a></li>
					</ul>
				</div>
				<div class="pull-right">
					<span class="text-muted"><b>1</b>–<b>50</b> of <b>277</b></span>
					<div class="btn-group btn-group-sm">
						<button type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-chevron-left"></span>
						</button>
						<button type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-chevron-right"></span>
						</button>
					</div>
				</div>
			</div>
		</div>
		<hr />
		<div class="row">
			<div class="col-sm-3 col-md-3">
				<?php echo $this->template->widget("cms_appmenu_widget", array("menu_name"=>"mail_menu"));?>
			</div>
			<div class="col-sm-9 col-md-9">
			
				<div class="row">
					<div class="col-md-12">
						<div class="pull-left"><?=$mail['subject']?></div>
						<div class="pull-right">
							<div class="btn-group">
							  <button type="button" class="btn btn-default">Reply</button>
							  <button type="button" class="btn btn-default">Delete</button>
							</div>
						</div>
					</div>
				</div>
				<hr />
				<div class="row">
					<div class="col-md-12">
						<div class="pull-left">
							<img src="<?php echo base_url(); ?>assets/uploads/.thumbs/images/zap/<?php echo $mail['photo'] == '' ? DEFAULT_IMG : $mail['photo'] ; ?>" class="img-responsive frnd-img" width="32" height="32">
							<span class="frnd-name"><?=$mail['firstname']?></span>
						</div>
						<div class="pull-right">
							<span><?=date('m/d/Y h:i A', strtotime($mail['date_added']));?></span>
						</div>
					</div>
					<div class="clearfix"></div>
					<div class="col-md-12 msgdetails" style="margin-top:10px;">
						<p><?=$mail['message']?></p>
					</div>
				</div>
				<hr />
				<div class="panel panel-default">
					 <div class="panel-heading">Reply Mail</div>
					<?php echo form_open(null, 'id="send_message" class="form-horizontal"'); ?>
						<div class="panel-body">
							<input type="hidden" name="toid" value="<?=$zapmember['userid']?>">
							<input type="hidden" name="to" value="<?=$zapmember['firstname']?>">
							<textarea class="form-control" rows="3" name="message"></textarea>
						</div>
						<div class="panel-footer text-right">
							<button type="submit" class="btn btn-info">Replay Message</button>
						</div>
					<?php echo form_close(); ?>
				</div>
				<!-- Nav tabs -->
				
				<!-- Tab panes -->
				
			</div>
		</div>
	</div>
</div>

  
